package dawi.fcs.servicio.servicio.impl;

import java.util.HashMap;

import dawi.fcs.servicio.dao.ComprobantePagoDao;
import dawi.fcs.servicio.factory.DAOFactory;
import dawi.fcs.servicio.generico.GenericoServicioImpl;
import dawi.fcs.servicio.servicio.ComprobantePagoServicio;

public class ComprobantePagoServicioImpl extends GenericoServicioImpl implements
		ComprobantePagoServicio {
	ComprobantePagoDao dao;

	public ComprobantePagoServicioImpl() {
		dao = DAOFactory.getFactorty(DAOFactory.MYSQL).getComprobantePagoDao();
		this.setGenericoDao(dao);
	}

	@Override
	public Integer generarId() {
		return dao.contar("comprobantePago.generarId",
				new HashMap<String, Object>());
	}
}
